using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Shpm.App.Input.Bean;
using System.Collections;
using Shpm.System.Db;

/// <summary>
/// Summary description for MemberSrhDao
/// </summary>
namespace Shpm.App.Input.Dao
{
    public class MemberSrhDao : ShpmBaseDao
    {
        private const string FIND_MEMBER_LIST = "Member.MemberInfo";

        private const string GET_MEMBER_LIST = "Member.GetMemberInfo";
        private const string GET_MEMBER = "Member.GetMember";
        private const string UPD_MEMBER = "Member.UpdMember";
        private const string UPD_MEMBER_DISEASE = "Member.UpdMemberDisease";
        private const string UPD_MEMBER_TEXT = "Member.UpdMemberText";


        public MemberSrhDao()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public IList FindMemberList(MemberSrhBean bean)
        {
            return base.QueryForList(FIND_MEMBER_LIST, bean);
        }

        public MemberSrhBean GetMember(MemberSrhBean bean)
        {
            return (MemberSrhBean)base.QueryForObject(GET_MEMBER_LIST, bean);
        }
        public MemberSrhBean GetMemberMemo(MemberSrhBean bean)
        {
            return (MemberSrhBean)base.QueryForObject(GET_MEMBER, bean);
        }

        public int UpdMember(MemberSrhBean bean)
        {
            return base.Update(UPD_MEMBER, bean);
        }
        public int UpdMemberDisease(MemberSrhBean bean)
        {
            return base.Update(UPD_MEMBER_DISEASE, bean);
        }
        public int UpdMemberText(MemberSrhBean bean)
        {
            return base.Update(UPD_MEMBER_TEXT, bean);
        }
    }
}